﻿using Domain.ValueObjects;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Infrastructure.Data.ValueConverter
{
    internal class RealNameToStringConverter : ValueConverter<RealName, string>
    {
        public RealNameToStringConverter()
            : base(
                v => v.Value,
                v => RealName.Create(v)
            )
        { }
    }
}
